package com.itmk.web.sys_banner.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itmk.web.sys_banner.entity.SysBanner;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * @author 山顶洞人郑某
 * @className SysBannerMapper.java
 * @date 2023 12 05
 */
@Mapper
public interface SysBannerMapper extends BaseMapper<SysBanner> {
    @Select("select banner_id from max_id where id = 1")
    Integer MaxId();
    @Update("update max_id set banner_id = #{i} where id = 1")
    void UpdateMaxId(int i);
}
